﻿<local:DocumentBase x:Class="WPFExcelReport.JLTABAUDIT"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
                        xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                         xmlns:db="clr-namespace:INTEX.DataBase"
                         Height="700" Width="1024" 
                        Loaded="Window_Loaded" 
                        FontSize="16" 
                        Background="White" 
                        HorizontalAlignment="Stretch"
                        Margin="0,0,0,0" 
                        VerticalAlignment="Stretch"
                    >
    <local:DocumentBase.Resources>
        <ucd:TextTrimmingConverter x:Key="Trim"></ucd:TextTrimmingConverter>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <db:SETINTEXDB  x:Key="SetData" />
        <db:SETINTEXDB  x:Key="SetProd" />
        <db:SETINTEXDB  x:Key="SetEnv" />
        <CollectionViewSource   x:Key="vwABAX" Source="{Binding Path=ICC_ABAX,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwTABAX" Source="{Binding Path=ICC_ABAX,Source={StaticResource SetProd}}" />
        <CollectionViewSource   x:Key="vwWDECK" Source="{Binding Path=WDECK,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwVKWDECK" Source="{Binding Path=WDECK,Source={StaticResource SetProd}}" />
        <CollectionViewSource   x:Key="vwVKPOS" Source="{Binding Path=VKPOS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwVKKOPF" Source="{Binding Path=VKKOPF,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWASTAMM" Source="{Binding Path=WASTAMM,Source={StaticResource SetProd}}" />
        <CollectionViewSource   x:Key="vwWAFARBEN" Source="{Binding Path=WAFARBEN,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBSSATZ" Source="{Binding Path=BSSATZ,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBHSATZ" Source="{Binding Path=BHSATZ,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwBSFARB" Source="{Binding Path=BSFARB,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTGEW" Source="{Binding Path=WTGEW,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWASTKE" Source="{Binding Path=WASTKE,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBASTKE" Source="{Binding Path=BASTKE,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWASTPASS" Source="{Binding Path=WASTPASS,Source={StaticResource SetData}}" />
        <CollectionViewSource   x:Key="vwWABIND" Source="{Binding Path=WABIND,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTEINZ" Source="{Binding Path=WTEINZ,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTPASS" Source="{Binding Path=WTPASS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWTSCHUSS" Source="{Binding Path=WTSCHUSS,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWADART" Source="{Binding Path=WADART,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwBASTGA" Source="{Binding Path=BASTGA,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwWASTGA" Source="{Binding Path=WASTGA,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwABPOS" Source="{Binding Path=ABPOS,Source={StaticResource SetProd}}" />
        <CollectionViewSource  x:Key="vwABAUFM" Source="{Binding Path=ICC_ABAX,Source={StaticResource SetProd}}" />
        <CollectionViewSource  x:Key="vwWFGAAUF" Source="{Binding Path=WFGAAUF,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwGAAUF" Source="{Binding Path=GAAUF,Source={StaticResource SetData}}" />
        <CollectionViewSource  x:Key="vwAPKOPF" Source="{Binding Path=APKOPF,Source={StaticResource SetEnv}}" />
        <CollectionViewSource  x:Key="vwAPZUORD" Source="{Binding Path=APZUORD,Source={StaticResource SetData}}" />

    </local:DocumentBase.Resources>
    <TabControl>
        <TabItem Header="{Binding Source={Localization:Translate Word=计划面板}}">
            <Grid   DataContext="" Width="1200" Margin="10,10,0,0" VerticalAlignment="Stretch">
                <Grid.RowDefinitions>
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="Auto" />
                    <RowDefinition   Height="1*" />
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*"/>
                    <ColumnDefinition Width="1*"/>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="1*" />
                </Grid.ColumnDefinitions>
                <Expander    Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" 
                Name="expLog" ExpandDirection="Down" IsExpanded="True" Margin="0,0,0,18">
                    <WrapPanel Name="zoneCommand" Margin="4,0,51,6" Grid.ColumnSpan="3">
                        <Label Content="{Binding Source={Localization:TranslateExtension Word=系统}}" Width="Auto" Margin="0" HorizontalAlignment="Left" VerticalAlignment="Center" />
                        <TextBox Name="txtMANDANT" MaxLength="2" Width="40" Margin="10,0,0,0"   HorizontalAlignment="Left" Background="Pink"  TabIndex="1" >00</TextBox>
                        <Label Content="{Binding Source={Localization:TranslateExtension Word=语言}}" Width="Auto" Margin="0,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                        <TextBox IsReadOnly="True" Name="txtSPRACHKZ" Width="40" Margin="0,0,0,0" Text="" MaxLength="1" HorizontalAlignment="Left" Background="Pink" FontSize="18" TabIndex="2" />
                        <Label Content="{Binding Source={Localization:TranslateExtension Word=用户名}}" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                        <TextBox Name="txtUserID" Width="80" Margin="10,0,0,0" Text="" HorizontalAlignment="Left" Background="Yellow" FontSize="18" MaxLength="8" AcceptsTab="False" CharacterCasing="Upper" KeyboardNavigation.TabIndex="0" TabIndex="3" />
                        <Label Content="{Binding Source={Localization:TranslateExtension Word=密码}}" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left"  VerticalAlignment="Center" />
                        <PasswordBox Name="txtPassword" Width="80" Margin="10,0,0,0" HorizontalAlignment="Left" Background="Yellow"  KeyboardNavigation.TabIndex="1" TabIndex="4" />
                        <Button Content="{Binding Source={Localization:TranslateExtension Word=登录}}" Height="Auto" Margin="10,0,0,0" Name="btnLogIn" Width="Auto" Click="btnLogIn_Click" KeyboardNavigation.TabIndex="2" IsDefault="True" TabIndex="5">

                        </Button>
                        <TextBlock Name="Administration"></TextBlock>
                        <CheckBox FontSize="14" Content="{Binding Source={Localization:TranslateExtension Word=属于评审组}}" Name="IsBelongs2V9"
                              Visibility="Hidden"></CheckBox>
                        <TextBlock FontSize="14" MinWidth="200" Width="Auto" Name="MemberV9" Background="#FF00AF00"
                               Visibility="Hidden"></TextBlock>
                        <TextBlock Name="txtLogIn" Width="Auto" Margin="10,0,0,0" HorizontalAlignment="Left" Background="White" FontSize="14" KeyboardNavigation.TabIndex="1" />
                    </WrapPanel>
                </Expander>
                <StackPanel  Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" Margin="0,0,0,0">
                    <WrapPanel >
                        <Button  Height="30"  Width="30" Margin="10,0,0,0" Name="btnGetVKKOPF" Click="btnQuery_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Search.png" />
                            </Button.Background>
                        </Button>
                        <Button  Height="30"  Width="30" Margin="10,0,0,0"   IsEnabled="True" Click="btnRefresh_Click">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Reload.png" />
                            </Button.Background>
                        </Button>
                        <WrapPanel>
                        <Button  Height="30"  Width="30" Margin="10,0,0,0"   Click="btnCombine_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Add.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock  Text="{Binding Source={Localization:Translate Word=合染}}" ></TextBlock>
                        </WrapPanel>
                        <Button  Height="30"  Width="30" Margin="10,0,0,0" Name="btnDeleteABON" Click="btnDeleteABON_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                            <Button.Background>
                                <ImageBrush ImageSource="Image/Delete.png" />
                            </Button.Background>
                        </Button>
                        <TextBlock Width="Auto">订单号:</TextBlock>
                        <TextBox   Name="txtVKPAUFKRS" MaxLength="2" Width="40" Margin="10,0,0,0"  HorizontalAlignment="Left" Background="Pink"  CharacterCasing="Upper"/>
                        <TextBox   Name="txtVKPAUFLFD" MaxLength="6" Width="80" Margin="0,0,0,0"   HorizontalAlignment="Left" KeyUp="txtVKPAUFLFD_KeyUp"/>
                        <TextBox  Name="txtVKPAUFPOS" Width="60" Margin="0,0,0,0" Text="{Binding Path=VKPAUFPOS, Source={StaticResource ResourceKey=vwVKPOS}}" HorizontalAlignment="Left" Background="Yellow" KeyboardNavigation.TabIndex="0" />
                        <WrapPanel>
                            <TextBlock  Text="{Binding Source={Localization:Translate Word=后整理}}" ></TextBlock>
                            <CheckBox Name="ChkAB05" VerticalAlignment="Center" IsChecked="False" Background="White" IsEnabled="False">
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                        <WrapPanel>
                            <TextBlock  Text="{Binding Source={Localization:Translate Word=织造}}" ></TextBlock>
                            <CheckBox Name="ChkAB55" VerticalAlignment="Center" IsChecked="False" Background="White" IsEnabled="False">
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                        <WrapPanel>
                            <TextBlock  Text="{Binding Source={Localization:Translate Word=浆纱}}" ></TextBlock>
                            <CheckBox Name="ChkAB45" VerticalAlignment="Center" IsChecked="False" Background="White" IsEnabled="False">
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                        <WrapPanel>
                            <TextBlock  Text="{Binding Source={Localization:Translate Word=染色}}" ></TextBlock>
                            <CheckBox Name="ChkAB50" VerticalAlignment="Center" IsChecked="True" Background="White"  >
                                <CheckBox.LayoutTransform>
                                    <ScaleTransform ScaleX="2" ScaleY="2" />
                                </CheckBox.LayoutTransform>
                            </CheckBox>
                        </WrapPanel>
                    </WrapPanel>
                    <WrapPanel>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="80"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=总数量}}" ></TextBlock>
                            <TextBox  Grid.Column="1" Name="txtTQty" Text="0" ></TextBox>
                        </Grid>
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="80"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Text="{Binding Source={Localization:Translate Word=交期}}" ></TextBlock>
                            <TextBox  Grid.Column="1" Name="txtDD" Text="0" ></TextBox>
                        </Grid>
                    </WrapPanel>
                    <DataGrid 
                        FontSize="12"
                        Name="dlgTABAX"
                        AutoGenerateColumns="False" 
                        EnableRowVirtualization="True" 
                        ItemsSource="{Binding Source={StaticResource ResourceKey=vwTABAX}}" 
                        HeadersVisibility="Column"  CanUserReorderColumns="True" CanUserResizeRows="True" CanUserSortColumns="True" 
                       RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto" Height="Auto" EnableColumnVirtualization="True" 
                        ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=ABAID}" Header="{Binding Source={Localization:TranslateExtension Word=ABAID}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFTYP}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFKRS}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFLFD}" Header="{Binding Source={Localization:TranslateExtension Word=生产单}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFPOS}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAART}" Header="{Binding Source={Localization:TranslateExtension Word=品种}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVAR}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAFARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABABESCHICH}"/>
                            <DataGridTextColumn Binding="{Binding Path=ABARESMG, Converter={StaticResource ResourceKey=d100}}" Header="{Binding Source={Localization:TranslateExtension Word=数量}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFKRS, Converter={StaticResource ResourceKey=Trim}}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFLFD, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=需求}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFPOS, Converter={StaticResource ResourceKey=Trim}}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPART, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=日期}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPVAR, Converter={StaticResource ResourceKey=Trim}}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPFARBE, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKENDD, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=ABAVKENDD}}"  Width="Auto" />
                        </DataGrid.Columns>
                    </DataGrid>
                    <DataGrid 
                        FontSize="12"
                        Name="dlgABAX"
                        AutoGenerateColumns="False" 
                        EnableRowVirtualization="True" 
                        ItemsSource="{Binding Source={StaticResource ResourceKey=vwABAX}}" 
                        HeadersVisibility="Column"  CanUserReorderColumns="True" CanUserResizeRows="True" CanUserSortColumns="True" 
                       RowDetailsVisibilityMode="VisibleWhenSelected" Width="Auto" Height="Auto" EnableColumnVirtualization="True" 
                        ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto">
                        <DataGrid.Columns>
                            <DataGridTextColumn Binding="{Binding Path=ABAID}" Header="{Binding Source={Localization:TranslateExtension Word=ABAID}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFTYP}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFKRS}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFLFD}" Header="{Binding Source={Localization:TranslateExtension Word=生产单}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAAUFPOS}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAART}" Header="{Binding Source={Localization:TranslateExtension Word=品种}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVAR}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAFARBE}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABABESCHICH}"/>
                            <DataGridTextColumn Binding="{Binding Path=ABARESMG, Converter={StaticResource ResourceKey=d100}}" Header="{Binding Source={Localization:TranslateExtension Word=数量}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFKRS, Converter={StaticResource ResourceKey=Trim}}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFLFD, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=需求}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKAUFPOS, Converter={StaticResource ResourceKey=Trim}}"   Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPART, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=日期}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPVAR, Converter={StaticResource ResourceKey=Trim}}"    Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABPFARBE, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=色号}}"  Width="Auto" />
                            <DataGridTextColumn Binding="{Binding Path=ABAVKENDD, Converter={StaticResource ResourceKey=Trim}}" Header="{Binding Source={Localization:TranslateExtension Word=ABAVKENDD}}"  Width="Auto" />
                        </DataGrid.Columns>
                    </DataGrid>
                </StackPanel>
            </Grid>
        </TabItem>
    </TabControl>

</local:DocumentBase>